home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-27 | 1.2 KB | 34 lines | [TEXT/GEOL] |
- Item 7291757 27-Oct-89 09:12
-
- From: D2079 Arthur Anderson, M Lockwood,PRT
-
- To: UK0310 Paul G Smith
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: Re: C++ VMT implementation?
-
- Paul,
-
- MPW C++ has several extensions to support compatibility with Object pascal and
- MacApp. One of these is a class called PascalObject. Any descendant of
- PascalObject uses the same method dispatching technique as Object Pascal.
- Other objects use the C++ method of dispatching. MPW C++ 3.1b1 is shipped with
- .h header files that define all the MacApp classes as descendants of
- PascalObject.
-
- MPW C++ also allows you to declare C++ methods so they will use pascal calling
- conventions using the "pascal" keyword. If you declare objects to be a
- descendant of TObject (which is a descendant of PascalObject) and use pascal
- calling conventions for your methods, your C++ code will look just like Object
- Pascal to the linker.
-
- One limitation: Multiple inheritance does not work with handle based objects.
- Therefore, C++ does put multiple inheritance in the hands of Mac programmers
- but does not add multiple inheritance to MacApp.
-
- Mike Lockwood
- Andersen Consulting
-
-
-